<?php 
namespace app\blog\controller;

use think\Controller;
use app\common\model\Article;

class Index extends Controller
{
	public function index()
	{
		//获取文章列表
		$list = Article::where(['state' => 1])->order('id desc')->field('id,title,content,create_time,see_num,badge,cover')->paginate()->toArray();
		return $this->success($list);
	}
}